package com.bird.component.lang.util.paramcheck.notempty
import com.bird.component.lang.util.paramcheck.CheckTrait
import com.bird.component.lang.util.paramcheck.ParameterCheckBuilder


internal interface NotEmptyTrait : CheckTrait {
    /**
     * 非空参数校验
     * Func.isNotEmpty
     */
   open fun notEmpty(fieldName: String, value: Any?): ParameterCheckBuilder {
        return richCheckModelMap(
            "NotEmpty",
            NotEmptyCheckBean(value = value, tip = fieldName),
        ) { NotEmptyCheckModel(mutableListOf()) }
    }
}